import { requestWithoutToken } from "@/utils/request";

export function getGoodsDetailById(id) {
  return requestWithoutToken("/goods", "get", { id });
}

export function getRelevantGoods(id, limit = 16) {
  return requestWithoutToken("/goods/relevant", "get", { id, limit });
}
export function getHotGoodsApi({ id, limit = 3, type = 1 }) {
  return requestWithoutToken("/goods/hot", "get", { id, limit, type });
}
export function getCommentInfoApi(id) {
  return requestWithoutToken(
    `https://mock.boxuegu.com/mock/1175/goods/${id}/evaluate`,
    "get"
  );
}
export function getCommentListApi(id, params) {
  return requestWithoutToken(
    `https://mock.boxuegu.com/mock/1175/goods/${id}/evaluate/page`,
    "get",
    params
  );
}
